package com.woniu.service.impl;

import com.woniu.adapter.EquipmentAdapter;
import com.woniu.outlet.po.Equipment;
import com.woniu.outlet.po.EquipmentStop;
import com.woniu.service.EquipmentStopService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EquipmentStopServiceImpl implements EquipmentStopService {
    @Autowired
    private EquipmentAdapter equipmentAdapter;

    @Override
    public List<EquipmentStop> findEquipmentStops() throws Exception {
        List<EquipmentStop> equipmentStops = equipmentAdapter.findEquipmentStops();
        return equipmentStops;
    }

    @Override
    public EquipmentStop findEquipmentStopByEquipmentNo(String equipmentNo) throws Exception {
        EquipmentStop equipmentStop = equipmentAdapter.findEquipmentStopByEquipmentNo(equipmentNo);
        return equipmentStop;
    }

    @Override
    public EquipmentStop findEquipmentStopById(Long id) throws Exception{
        EquipmentStop equipmentStop = equipmentAdapter.findEquipmentStopById(id);
        return equipmentStop;
    }


}
